package org.example.service;

import org.example.entity.Note;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author 谢娅
* @description 针对表【note】的数据库操作Service
* @createDate 2023-12-21 23:25:23
*/
public interface NoteService extends IService<Note> {

    List<Note> getDimQuery(Map<String, Object> dataMap);

    Note getCurrentNote(Long userId);

    int updateByMap(Map<String,Object> dataMap);

    List<Note> search(String keyword, String startTime, String endTime, String categoryId, Long userId);

    List<Note> listByUserId(Long userId);

    List<Note> listByParentFolderId(Long userId,Long parentFolderId);
}
